package com.hnnu.shoppingtoghter.demo.service;

import com.hnnu.shoppingtoghter.demo.entity.SysUser;

import java.util.List;

public interface SysUserService {
    /**
     * pdy
     * 根据用户账号，密码在数据库中查询对应用户记录
     * @param userCode
     * @param userPassword
     * @return
     */
    SysUser selectUserByUserCodeUserPassword(String userCode,String userPassword);

    /**
     * pdy
     * 将SysUser 对象插入到数据库中
     */
    int insertUser(SysUser user);

    /**
     * @Description: TODO
     * @Author: Liu_aihuan
     * @CreateTime: 2022/7/6 1:08
     * @param: user
     * @return: int
     **/

    int updateUser(SysUser user);

    /**
     * @Description: TODO
     * @Author: Liu_aihuan
     * @CreateTime: 2022/7/6 2:56
     * @param: user
     * @return: int
     **/

    int updateUserPassword(SysUser user);

    int updateHeadImages(long id, String s);
}
